

using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Service
{
    public class SellerTradeService : ServiceBase<SellerTrade>
    {
        public DataCollection<SellerTrade> GetByAll(int sellerId, SellerTradeType type, long orderId, string externId, DateTime startTime, DateTime endTime, string comment, int pageIndex, int pageSize)
        {
            Request req = new Request { Api = "getByAll" };
            req.Add("sellerId", sellerId);
            req.Add("type", type);
            req.Add("orderId", orderId);
            req.Add("externId", externId);
            req.Add("startTime", this.FormatToDBTime(startTime));
            req.Add("endTime", this.FormatToDBTime(endTime));
            req.Add("comment", comment);
            req.Add("pageIndex", pageIndex);
            req.Add("pageSize", pageSize);

            return this.DoRemoteCall<SellerTrade>(req).ToDataCollection();
        }
    }
}
